package com.jianguozh.difs.support.api.ops.dto;

import com.jianguozh.difs.framework.validator.group.UpdateGroup;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * 角色dto
 *
 * @author hanrs
 * @email 4076130@qq.com
 * @since 2022/3/26 15:52
 */
@Data
public class RoleDto {

    /**
     * id
     */
    @NotBlank(groups = {UpdateGroup.class}, message = "id不能为空")
    private String id;

    /**
     * 名称
     */
    @NotBlank(message = "角色名称不能为空")
    private String roleName;

    /**
     * 描述
     */
    private String description;
}
